import http from '@/utils/http'

export let roleList = (params) => {
  const url = '/permission-management/role-management/listAllRoles'
  return http.post(url, params)
}
export let insertRole = (params) => {
  const url = '/permission-management/role-management/insertRole'
  return http.post(url, params)
}
export let updateRole = (params) => {
  const url = '/permission-management/role-management/updateRole'
  return http.post(url, params)
}
export let deleteRole = (params) => {
  const url = '/permission-management/role-management/deleteRole'
  return http.post(url, params)
}
export let findRoles = (params) => {
  const url = '/permission-management/user-permission/findRoles'
  return http.post(url, params)
}
export let findUsers = (params) => {
  const url = '/permission-management/user-permission/findUsers'
  return http.post(url, params)
}
export let modifyUserRole = (params) => {
  const url = '/permission-management/user-permission/modifyUserRole'
  return http.post(url, params)
}
